package com.the4man.framework.utils;

import java.util.ResourceBundle;

/**
 * Created by lenovo on 2017/12/12.
 */
public class InitParamUtil {
    private static final ResourceBundle bundle = ResourceBundle.getBundle("config");
    public static final String SUCCESS = "SUCCESS";
    public static final String FAILURE = "FAILURE";
    public static final int R_OK = 1;
    public static final int R_FAILD = 0;
    public static final String uploadDirectory = "";
    public static final long BYTE = 1024L;
    public static final long KB = 1048576L;
    public static final long MB = 1073741824L;
    public static final int DQM_DOMAIN = 701;
    public static final int CONFIG_YES = 1;
    public static final int CONFIG_NO = 0;
    public static final int COLUMN_TYPE_VALUE = 1;
    public static final int COLUMN_TYPE_DIMENSION = 2;
    public static final int COLUMN_TYPE_OTHER = 3;
    public static final int NULL_YES = 1;
    public static final int NULL_NO = 0;
    public static final String WILDCARD_DATE = "#DATE#";
    public static final int PERIOD_YEAR = 1;
    public static final int PERIOD_MONTH = 2;
    public static final int PERIOD_DAY = 3;
    public static final int PERIOD_HOUR = 4;
    public static final String PROBLEMMGR = "0";
    public static final String KNOWLEDGEBASE = "1";
    public static final String ADD_OPERATE = "add";
    public static final String EDIT_OPERATE = "edit";
    public static final int RAPID_REPORT_TYPE = 1;
    public static final int FAST_REPORT_TYPE = 2;
    public static final int MONTH_PERIOD_TYPE = 2;
    public static final int DAY_PERIOD_TYPE = 3;
    public static final String LOGIN_PORTAL = "PROTAL";
    public static final String LOGIN_DQM = "DQM";

    public InitParamUtil() {
    }

    public static final String getSessionInfoName() {
        return bundle.getString("sessionInfoName");
    }

    public static final String getDatabaseInfoName() {
        return bundle.getString("database");
    }

    public static final String geUploadDirectory() {
        return bundle.getString("uploadDirectory");
    }

    public static final String getPortalDSName() {
        return bundle.getString("portalDSName");
    }

    public static final String getQueryUserSql() {
        return bundle.getString("queryUserSql");
    }
}
